package com.woniuxy.enjoylife.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-18
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
//房屋表
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //房屋拥有者id
    private int uid;
    //小区id
    private Integer cid;
    //栋
    private Integer building;
    //单元
    private Integer unit;
    //门牌号
    private Integer num;
    //是否用户默认房屋  0:默认
    private boolean def;

    public House(int uid, Integer cid, Integer building, Integer unit, Integer num, boolean def) {
        this.uid=uid;
        this.cid=cid;
        this.building=building;
        this.unit=unit;
        this.num=num;
        this.def=def;
    }

    public House(int id, Integer cid, int building, int unit, int num) {
        this.id=id;
        this.cid=cid;
        this.building=building;
        this.unit=unit;
        this.num=num;
    }
}
